/* 
 * File:   systask.h
 * Author: apleilx
 */

#ifndef SYSTASK_H
#define	SYSTASK_H

#include "stdint.h"
#include "dataproc.h"
#include "rtctime.h"
#include "pulse.h"

#ifdef   _SYSTASK_MODULE_
#define  SYS_EXT
#else
#define  SYS_EXT  extern
#endif  	
	
#ifdef	__cplusplus
extern "C" {
#endif
    
    typedef struct 
    {
        uint8_t b_run_st;
        volatile uint32_t g_uTicks;
        timer_pulse_type pulse;
        TIME_Type time;
        sig_time_type    sig_time;
        bcd_time_type    bcd_time;
    } sys_st_type;
    
    SYS_EXT sys_st_type sysst;
    
void SysTask(void);
    
#ifdef	__cplusplus
}
#endif


#undef SYS_EXT

#endif	/* SYSTASK_H */

